OPC Studio User's Guide and Reference
StringSet Constructor(IEnumerable<String>)



View with Navigation Tools
OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Collections.Specialized Namespace > StringSet Class > StringSet Constructor : StringSet Constructor(IEnumerable<String>)
The collection whose elements are copied to the new set.

The value of this parameter cannot be null (Nothing in Visual Basic).

Initializes a new instance of the StringSet class contains elements copied from the specified collection, and has sufficient capacity to accommodate the number of elements copied.
Syntax
'Declaration
 
Public Function New( _
   ByVal collection As IEnumerable(Of String) _
)
 
'Usage
 
Dim collection As IEnumerable(Of String)
 
Dim instance As New StringSet(collection)

Parameters

collection
The collection whose elements are copied to the new set.

The value of this parameter cannot be null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also